package cn.dface.app.deploy.entity;

import java.io.File;

public class AppProcessRecord {
	
	private final static long READ_LENGTH = 100;
	
	private Process proc;
	private File appConfigFile;
	private File appRecordFile;
	private long position;
	private long nextPosition;
	
	public AppProcessRecord(Process proc, File appConfigFile, File appRecordFile, long position) {
		this.proc = proc;
		this.appConfigFile = appConfigFile;
		this.appRecordFile = appRecordFile;
		this.position = position;
	}
	
	public Process getProc() {
		return proc;
	}
	public void setProc(Process proc) {
		this.proc = proc;
	}
	
	public long getPosition() {
		return position;
	}
	public void setPosition(long position) {
		this.position = position;
	}

	public long getNextPosition() {
		return this.position + READ_LENGTH;
	}

	public File getAppConfigFile() {
		return appConfigFile;
	}

	public void setAppConfigFile(File appConfigFile) {
		this.appConfigFile = appConfigFile;
	}

	public File getAppRecordFile() {
		return appRecordFile;
	}

	public void setAppRecordFile(File appRecordFile) {
		this.appRecordFile = appRecordFile;
	}
	
}
